package cn.edu.nwafu.hjpg.dao;

import cn.edu.nwafu.hjpg.entity.Hjxwb;
import cn.edu.nwafu.hjpg.entity.Lhsxb;
import cn.edu.nwafu.hjpg.entity.Stwhb;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface StwhbDao extends MongoRepository<Stwhb,String> {
    List<Stwhb> findElementByBaseinfoWzbmAndAttributeAndFlag(String baseinfoWzbm,String attribute,String flag);
    Page<Stwhb> findAllByflag(String flag, Pageable pageable);


    List<Stwhb> findAllByBaseinfoWzbmAndFlag(String id, String flag);

    Page<?> findAllByflagAndAttribute(String id, String attribute, int flag, Pageable pageable);
    List<Stwhb> findAll();
}
